package com.example.lijinyuan.baseandroid.Activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.example.lijinyuan.baseandroid.R;


/**
 * Created by lijinyuan on 15/10/26.
 */
public class SingleTop extends Activity {
    TextView textView;
    Button button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_four_activity);
        button = (Button) findViewById(R.id.act_bn);
        textView = (TextView) findViewById(R.id.act_tv);
        textView.setText(String.format("TaskID:%d,%s",getTaskId(),toString()));
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(SingleTop.this, ContentActivity.class));
            }
        });
    }

}
